(function () {
    const oEchart = echarts.init(document.getElementById('radar02'));
    const colors = ['rgba(57, 131, 253,1)','rgba(65, 202, 250,1)','rgba(255, 179, 1,1)','rgba(107, 221, 136,1)', 'rgba(140, 221, 255,1)','rgba(255, 203, 48,1)','rgba(248, 90, 103,1)','rgba(171, 112, 237,1)','rgba(2, 134, 149,1)','rgba(253, 148, 195,1)']
    oEchart.setOption({
        color: colors,
        legend: {
            data: ["中毒", "休克", "其他", "心功能衰竭", "急性循环衰竭", "感染", "肺炎", "脑损伤", "脓毒症"],
            type: 'scroll',
            bottom: '2%'
        },
        tooltip: {
            show: true
        },
        radar: {
            splitArea: {
                show: false,
            },
            name: {
                textStyle: {
                    color: '#6E6E6E',
                },
            },
            // shape: 'circle',
            indicator: [
                { name: "治愈", max: 33 },
                { name: "好转", max: 135 },
                { name: "死亡", max: 13 },
                { name: "无变化", max: 3 },
                { name: "恶化", max: 3 }
            ]
        },
        series: [
            {
                name: '各疾病治愈效果分析',
                type: 'radar',
                data: [
                    {
                        name: "中毒",
                        value: [7, 8, 0, 0, 0]
                    },
                    {
                        name: "休克",
                        value: [32, 134, 12, 2, 2]
                    },
                    {
                        name: "其他",
                        value: [8, 49, 3, 1, 0]
                    },
                    {
                        name: "心功能衰竭",
                        value: [1, 10, 1, 0, 1]
                    },
                    {
                        name: "急性循环衰竭",
                        value: [4, 10, 1, 0, 0]
                    },
                    {
                        name: "感染",
                        value: [3, 17, 2, 2, 0]
                    },
                    {
                        name: "肺炎",
                        value: [4, 20, 4, 2, 0]
                    },
                    {
                        name: "脑损伤",
                        value: [1, 18, 0, 0, 0]
                    },
                    {
                        name: "脓毒症",
                        value: [11, 41, 2, 0, 0]
                    }
                ]
            }
        ]
    })
})()